package com.quick.develop.flowable.domain.instance;

import com.quick.develop.flowable.domain.BpmBaseDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@ApiModel("管理后台 - 流程实例的 Response VO")
@Data
public class BpmProcessInstanceRespVO extends BpmBaseDO {

    private static final long serialVersionUID = 4506855635936255043L;
    
    @ApiModelProperty(value = "流程实例的编号", example = "1024")
    private String id;
    
    @ApiModelProperty(value = "父流程实例ID")
    private String superProcessInstanceId;

    @ApiModelProperty(value = "流程名称")
    private String name;
    
    @ApiModelProperty(value = "流程名称")
    private String startUserId;

    @ApiModelProperty(value = "流程分类")
    private String category;

    @ApiModelProperty(value = "流程实例的状态")
    private Integer status;

    @ApiModelProperty(value = "流程实例的结果", notes = "参见 bpm_task_btn", example = "2")
    private Integer result;

    @ApiModelProperty(value = "提交时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "耗时")
    private long durationInMillis;

}
